 
 
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">相关视频：</label>
    <div class="col-sm-9 col-xs-12">
    {php echo tpl_form_field_video('data[video]', $item['video'], '', array('extras' => array('text' => '')))}
    <p> 视频是外部链接时 需要把域名添加到 腾讯小程序后台的 域名列表中。 </p>
	</div>
</div>

<div class="form-group">  
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">视频封面图：</label>
    <div class="col-sm-9 col-xs-12">
        {php echo tpl_form_field_image('prule', $item['prule'], '', array('extras' => array('text' => 'readonly')))}
        <p>没有上传视频封面图，则采用形象图替代。 </p>
    </div>
</div>

 
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">地图坐标：</label>
        <div class="col-sm-4 col-xs-12">
            <?php
            $map = ['lng'=>'', 'lat'=>''];
            if($item['mapinfo']){
                $mapinfo = explode(',',$item['mapinfo']);
                $map['lng'] = isset($mapinfo[0])?$mapinfo[0]:'' ;
                $map['lat'] = isset($mapinfo[1])?$mapinfo[1]:'';
            }
            
            echo tpl_form_field_coordinate('mapinfo', $map);
            ?>
        </div>
        
 </div> 	                       
 
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">推荐标签：</label>
	<div class="col-sm-2 col-xs-3" >
            <!-- <label for="isrecommand" class="checkbox-inline">
		<input type="checkbox" name="data[istop]" value="1"
                       id="istop" {if $item['istop'] == 1}checked="true"{/if} /> 置顶
            </label> -->
             <label for="isrecommand" class="checkbox-inline">
		<input type="checkbox" name="data[isjingpin]" value="1"
                       id="isjingpin" {if $item['isjingpin'] == 1}checked="true"{/if} /> 必看好房
            </label>
    </div>
    <label class="col-xs-3 col-sm-1 col-md-2 control-label">推荐理由：</label>
    <div class="col-sm-5 col-xs-3" >
                    <label for="isrecommand" class="checkbox-inline">
		<input type="checkbox" name="data[show_jiaji]" value="1"
                       id="show_jiaji" {if $item['show_jiaji'] == 1}checked="true"{/if} /> 热门抢手
            </label>
             <label for="isrecommand" class="checkbox-inline">
		<input type="checkbox" name="data[show_you]" value="1"
                       id="show_you" {if $item['show_you'] == 1}checked="true"{/if} /> 品质小区
            </label>
             <label for="isrecommand" class="checkbox-inline">
		<input type="checkbox" name="data[show_hight]" value="1"
                       id="show_hight" {if $item['show_hight'] == 1}checked="true"{/if} /> 店长推荐
            </label>
      <p>只有勾选了“必看好房” 设置才有效</p>       
    </div>
</div>
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>查看设置：</label>
	<div class="col-sm-2 col-xs-2">
            <span class="input-group  ">
		<?php  echo
 form_element::select(['全部可见','仅经纪人可见'],'data[permission]','permission',$item['permission']);
 ?>     
            </span>
	</div>
        
</div> 
<!-- Button trigger modal -->
